<?php

class Users3_Qualification_model extends CI_Model {

    public $table = "";
    //put your code here
    function __construct() {
        parent::__construct();
        $this->table = MYSQL_TABLE_PREFLIX.TABLE_USER3_ADDITIONAL_QUALIFICATION;
    }

    function GetAll($offset = 0, $limit = 10) {
        $this->db->from($this->table);
        $this->db->order_by("PostDate", "asc");
        $this->db->limit($limit,$offset);
        $query = $this->db->get();
        return $query->result_array();
    }
    
    function Get($data){
        $query = $this->db->get_where($this->table, $data);
        return $query->result_array();
    }
    
    function Get_Advanced($select = '*', $where = array(), $group_by = array()){
        $query = $this->db->select($select)->group_by($group_by)->get_where($this->table, $where);
        return $query->result_array();
    }

    function Insert($data) {
        $this->db->insert($this->table, $data);
    }
    
    function Update($data, $where)  {
        $this->db->where($where);
        $this->db->update($this->table,$data);
    }
    

}
